/* 
 * File:   constante_format_execption.h
 * Author: Gab'z
 *
 * Created on 6 mai 2012, 20:06
 */

#ifndef OPERATOR_EXECPTION_H
#define	OPERATOR_EXECPTION_H

#include <exception>
#include <string>

class OperatorException : public std::exception {
    std::string info;
public:

    OperatorException(const std::string& i) : info("Erreur de parsing. -> " + i) {
    }

    virtual ~OperatorException()throw () {
    }

    const char* what() const throw () {
        return info.c_str();
    }
};

#endif	/* OPERATOR_EXECPTION_H */

